package cn.com.cifi.mars.constant;

/**
 * 流程类型
 * @author Administrator
 *
 */
public enum ProcessTypeEnum {

	PRICE_MANAGEMENT("price_management","货值填报"),
	SIGNING_PLAN("signing_plan","签约计划"),
	MONEY_BACK_PLAN("return_plan","回款计划"),
	MONEY_BACK_COEFFICIENT("return_coefficient","回款系数");

    private String key;
    private String value;

    ProcessTypeEnum(String key,String value) {
        this.key = key;
        this.value = value;
    }
    
    
    public static String getValueByKey(String key){
        for(ProcessingStateEnum versionTypeEunm:ProcessingStateEnum.values()){
            if(key.equals(versionTypeEunm.getKey())){
                return versionTypeEunm.getValue();
            }
        }
        return  null;
    }
    
    /**
     * @return the key
     */
    public String getKey() {
        return key;
    }

    /**
     * @return the value
     */
    public String getValue() {
        return value;
    }

}
